package com.example.actuator.controller;

import com.example.actuator.common.properties.MyProperties;
import com.example.actuator.vo.SwitchVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {
    @Autowired
    private SwitchVO switchVO;
    @Autowired
    private MyProperties myProperties;

    @GetMapping("/dynamicUpdateBean")
    public String dynamicUpdateBean() {
        return switchVO + " : " + myProperties;
    }
}
